package com.ctshk.rpc.user.entity.es;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 *  机场快线订单
 * </p>
 *
 * @author 李新科
 * @date 2021/5/27 20:39
 */
@Data
@ApiModel(value="机场快线订单ES缓存实体")
@Accessors(chain = true)
public class AirportExpressOrderEs implements Serializable {

    @ApiModelProperty(value = "机场快线-票种名称")
    private String ticketTypeName;

    @ApiModelProperty(value = "机场快线-票种名称(英文)")
    private String ticketTypeEnName;

    @ApiModelProperty(value = "机场快线-成人票数")
    private Integer adultTicketNumber;

    @ApiModelProperty(value = "机场快线-小童票数")
    private Integer childrenTicketNumber;

    @ApiModelProperty(value = "机场快线-有效期")
    @Field(type = FieldType.Date,format = DateFormat.date)
    private LocalDate effectiveTime;

    @ApiModelProperty("机场快线-车票二维码url")
    private String ticketQrCodeUrl;
}
